<!DOCTYPE html>
<html  lang="en">
    <head>
        <title>Document</title>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
        <link rel="stylesheet" href="https://unpkg.com/swiper/swiper-bundle.min.css">   
        <script src="https://unpkg.com/swiper/swiper-bundle.min.js"> </script>
        <style>
            .swiper-container{
                width: 100%;
                height: 200px;
            }
        </style>
    </head>
    <body>
        <div class="swiper-container">
            <div class="swiper-wrapper">
              <div class="swiper-slide">slider1</div>
              <div class="swiper-slide">slider2</div>
              <div class="swiper-slide">slider3</div>
            </div>

            <!-- 如果需要分页器 -->
            <div class="swiper-pagination"></div>
        
            <!-- 导航按钮 -->
            <div class="swiper-button-prev"></div>
            <div class="swiper-button-next"></div>
        
            <!-- 如果需要滚动条 -->
            <!-- <div class="swiper-scrollbar"></div> -->

        </div>
        <script>
            let mySwiper = new Swiper('.swiper-container', 
            {
                pagination: {
                    el: '.swiper-pagination',
                },

                autoplay: {
                    delay: 2500,
                    disableOnInteraction: false,
                },

                navigation: {
                    nextEl: '.swiper-button-next',
                    prevEl: '.swiper-button-prev',
                },
            })
        </script>  
    </body>
</html>